			
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using DDF.Entity;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;
		
namespace ARR.Entities
{
	[DataContract]
	[Serializable]	
	public partial class ArticleSale : EntityBase
	{
		[DataMember]
		private ArticleSaleRow row;
		
		public ArticleSale(ArticleSaleRow row)
		{
			this.row = row;
		}
		
		public ArticleSale()
		{
			this.row = new ArticleSaleRow();
		}
		
		[DataMember]
		public int Id
		{
			get { return row.Id; }
			set { row.Id = value; }
		}

		[DataMember]
		public int StoreId
		{
			get { return row.StoreId; }
			set { row.StoreId = value; }
		}

		[DataMember]
		public int ArticleId
		{
			get { return row.ArticleId; }
			set { row.ArticleId = value; }
		}

		[DataMember]
		public DateTime Date
		{
			get { return row.Date; }
			set { row.Date = value; }
		}

		[DataMember]
		public int Units
		{
			get { return row.Units; }
			set { row.Units = value; }
		}

		[DataMember]
		public decimal Sales
		{
			get { return row.Sales; }
			set { row.Sales = value; }
		}

		[DataMember]
		public decimal GM
		{
			get { return row.GM; }
			set { row.GM = value; }
		}

		[DataMember]
		public decimal GrossSales
		{
			get { return row.GrossSales; }
			set { row.GrossSales = value; }
		}

		[DataMember]
		public decimal? Price
		{
			get { return row.Price; }
			set { row.Price = value; }
		}

		[DataMember]
		public bool? Confirmed
		{
			get { return row.Confirmed; }
			set { row.Confirmed = value; }
		}

		[DataMember]
		public decimal? NetMargin
		{
			get { return row.NetMargin; }
			set { row.NetMargin = value; }
		}

		[DataMember]
		public int? PIDiffUnits
		{
			get { return row.PIDiffUnits; }
			set { row.PIDiffUnits = value; }
		}

		[DataMember]
		public decimal? PIDiff
		{
			get { return row.PIDiff; }
			set { row.PIDiff = value; }
		}

		[DataMember]
		public int? ChargeOffsUnits
		{
			get { return row.ChargeOffsUnits; }
			set { row.ChargeOffsUnits = value; }
		}

		[DataMember]
		public decimal? ChargeOffs
		{
			get { return row.ChargeOffs; }
			set { row.ChargeOffs = value; }
		}

		[DataMember]
		public decimal? Rebates
		{
			get { return row.Rebates; }
			set { row.Rebates = value; }
		}

		[DataMember]
		public string BonusBuyNumber
		{
			get { return row.BonusBuyNumber; }
			set { row.BonusBuyNumber = value; }
		}

		[DataMember]
		public decimal? Costs
		{
			get { return row.Costs; }
			set { row.Costs = value; }
		}

		[DataMember]
		public decimal? CostsWithVat
		{
			get { return row.CostsWithVat; }
			set { row.CostsWithVat = value; }
		}

		[DataMember]
		public bool? Deleted
		{
			get { return row.Deleted; }
			set { row.Deleted = value; }
		}

		
		public ArticleSaleRow GetRow()
        {
            return row;
        }
		
	} 
} 
